def getNums(num):
    if num > 1:
        return num * getNums(num - 1)
    else:
        return num


result = getNums(4)
print(result)
